package com.zryc.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 用户地址表
 * </p>
 *
 * @author xujiajun
 * @since 2022-10-17
 */
@TableName("customer_addr")
@ApiModel(value = "CustomerAddr对象", description = "用户地址表")
public class CustomerAddr implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("自增主键ID")
    @TableId(value = "customer_addr_id", type = IdType.AUTO)
    private Integer customerAddrId;

    @ApiModelProperty("customer_login表的自增ID")
    private Integer customerId;

    @ApiModelProperty("收货人姓名")
    private String recieverName;

    @ApiModelProperty("收货人电话")
    private String recieverPhone;

    @ApiModelProperty("邮编")
    private Short zip;

    @ApiModelProperty("省份")
    private String province;

    @ApiModelProperty("城市")
    private String city;

    @ApiModelProperty("区、县")
    private String district;

    @ApiModelProperty("具体的地址门牌号")
    private String address;

    @ApiModelProperty("是否默认")
    private Byte isDefault;

    public Integer getCustomerAddrId() {
        return customerAddrId;
    }

    public void setCustomerAddrId(Integer customerAddrId) {
        this.customerAddrId = customerAddrId;
    }

    public Integer getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Integer customerId) {
        this.customerId = customerId;
    }

    public String getRecieverName() {
        return recieverName;
    }

    public void setRecieverName(String recieverName) {
        this.recieverName = recieverName;
    }

    public String getRecieverPhone() {
        return recieverPhone;
    }

    public void setRecieverPhone(String recieverPhone) {
        this.recieverPhone = recieverPhone;
    }

    public Short getZip() {
        return zip;
    }

    public void setZip(Short zip) {
        this.zip = zip;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Byte getIsDefault() {
        return isDefault;
    }

    public void setIsDefault(Byte isDefault) {
        this.isDefault = isDefault;
    }

    @Override
    public String toString() {
        return "CustomerAddr{" +
            "customerAddrId = " + customerAddrId +
            ", customerId = " + customerId +
            ", recieverName = " + recieverName +
            ", recieverPhone = " + recieverPhone +
            ", zip = " + zip +
            ", province = " + province +
            ", city = " + city +
            ", district = " + district +
            ", address = " + address +
            ", isDefault = " + isDefault +
        "}";
    }
}
